package com.qixiucoding.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author longhj
 * @Description TODO
 * @Date 2021/10/04 星期一 23:18
 */
@Data
@Component
public class Pet {
    @Value("${dog.pet.name}")
    private String name;
    @Value("${dog.pet.age}")
    private Integer age;
}
